<?php


namespace app\mb\controller;


use app\common\controller\All;


class Base extends All
{


    public function __construct()
    {
        parent::__construct();
        config();
        $config = $GLOBALS['config']['site'];
        $this->assign($config);
        $from = input('from');
        if(empty($from)){
            $from = session('from');
        }else if($from=="tiantang"){
            session('from','tiantang');
        }
        if(empty($from)){
            echo "404 not found";
            exit;
        }

    }




}